package SimpleFactory;

/**
 * 功能:
 * 作者: ldl
 * 时间: 2016-08-10 15:39
 */
public class Main {

    public static void main(String[] args) {
        Operation operation = OperationFactory.createOperation("+");
        assert operation != null;
        operation.numberA = 1;
        operation.numberB = 2;
        System.out.println(operation.getResult());
    }
}
